Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fast/warm-reboot] Retain TRANSCEIVER_INFO tables on fast/warm-reboot #3240

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

stepanblyschak
Copy link
Contributor

@stepanblyschak stepanblyschak commented Mar 25, 2024

What I did

Retain TRANSCEIVER_INFO tables on fast/warm reboot. The PHY isn't reset on fast/warm reboot. Knowing about plugged modules is required for orchagent to set SAI_PORT_ATTR_HOST_TX_SIGNAL_ENABLE=true on start.

How I did it

Save TRANSCEIVER_INFO tables on warm/fast-reboot.

How to verify it

Run fast/warm-reboot.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@prgeor
Copy link
Contributor

prgeor commented Mar 25, 2024

@mihirpat1 @vaibhavhd please review

@@ -252,6 +252,8 @@ function backup_database()
and not string.match(k, 'MIRROR_SESSION_TABLE|') \
and not string.match(k, 'FG_ROUTE_TABLE|') \
and not string.match(k, 'WARM_RESTART_ENABLE_TABLE|') \
and not string.match(k, 'TRANSCEIVER_INFO|') \
and not string.match(k, 'TRANSCEIVER_STATUS|') \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stepanblyschak OA subscribes to TRANSCEIVER_INFO, why save TRANSCIEVER_STATUS?

Copy link
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stepanblyschak As discussed offline, lets fix your platform API so that Xcvrd can identify already present transceivers.

@stepanblyschak stepanblyschak changed the title [fast/warm-reboot] Retain TRANSCEIVER_INFO/STATUS tables on fast/warm-reboot [fast/warm-reboot] Retain TRANSCEIVER_INFO tables on fast/warm-reboot Apr 15, 2024
@stepanblyschak
Copy link
Contributor Author

@prgeor removed TRANSCEIVER_STATUS

@prgeor prgeor merged commit 07d6d27 into sonic-net:master Apr 19, 2024
5 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request May 13, 2024
…sonic-net#3240)

* [fast/warm-reboot] Retain TRANSCEIVER_INFO/STATUS tables on reboot

Signed-off-by: Stepan Blyschak <[email protected]>

* Remove TRANSCEIVER_STATUS

---------

Signed-off-by: Stepan Blyschak <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3319

mssonicbld pushed a commit that referenced this pull request May 13, 2024
…#3240)

* [fast/warm-reboot] Retain TRANSCEIVER_INFO/STATUS tables on reboot

Signed-off-by: Stepan Blyschak <[email protected]>

* Remove TRANSCEIVER_STATUS

---------

Signed-off-by: Stepan Blyschak <[email protected]>
arfeigin pushed a commit to arfeigin/sonic-utilities that referenced this pull request Jun 16, 2024
…sonic-net#3240)

* [fast/warm-reboot] Retain TRANSCEIVER_INFO/STATUS tables on reboot

Signed-off-by: Stepan Blyschak <[email protected]>

* Remove TRANSCEIVER_STATUS

---------

Signed-off-by: Stepan Blyschak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants